-- GENERATED SPELL FOR [Naxxramas Dreadguard] --


function spell0_27823(pUnit, Event) --@Soulthirst,n/a--
pUnit:FullCastSpellOnTarget(51290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27823', 0, 1)
end

function Sorts_27823(pUnit, Event)
local choix_sorts_27823 = math.random(0, 0)
if choix_sorts_27823 == 0 then
pUnit:RegisterEvent('spell0_27823', 1, 1)
end
end

function mob27823_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27823', math.random(1500, 3000), 1)
end

function mob27823_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27823_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27823_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27823, 1, 'mob27823_Action')
RegisterUnitEvent(27823, 2, 'mob27823_Leave')
RegisterUnitEvent(27823, 3, 'mob27823_Kill')
RegisterUnitEvent(27823, 4, 'mob27823_Die')
